module.exports = app => {
  const mongoose = require('mongoose')
  require('../models/AdminUser')
  require('../models/Category')
  require('../models/Hero')
  require('../models/Item')
  const db = mongoose.connection
  mongoose.connect('mongodb://moba:moba123@ds253368.mlab.com:53368/vue-moba',{
    useNewUrlParser: true
  })
  db.on('open', ()=>{
    console.log('数据库连接成功')
  })
}